package com.baiduspring.service.sms;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

public class ReturnCodeMapping {
    private final static ReturnCodeMapping instance = new ReturnCodeMapping();

    private ReturnCodeMapping() {
    }

    public static ReturnCodeMapping getInstance() {
        return instance;
    }

    public String mapping(String key) {
        Properties properties = new Properties();
        InputStream in = getClass().getResourceAsStream("/ucpaas.config.properties");
        try {
            properties.load(in);
        } catch (IOException e) {
            e.printStackTrace();
        }

        return properties.getProperty(key);
    }


}
